package com.teaching.teachingsupport.common.pojo.dataobject;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("syllabus")
public class Syllabus {
    
    @TableId(type = IdType.AUTO)
    private Long syllabusId;
    
    private Long courseId;
    
    private String fileName;
    
    private String filePath;
    
    private String status; // USING:正在使用, ARCHIVED:已归档, PENDING:待审核
    
    private Long creatorId;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @Version
    private Integer version;
    
    @TableLogic
    @TableField("is_deleted")
    private Boolean isDeleted;
    
    @TableField(exist = false)
    private List<String> grades; // 适用年级，存储在关联表中
} 